"""

"""

class Employee:
   '''Common base class for all employees'''
   empCount = 0

   def __init__(self, name, salary):
      self.name = name
      self.salary = salary
      Employee.empCount += 1

   def displayCount(self):
     print("Total Employee %d" % Employee.empCount)

   def displayEmployee(self):
      print("Name : ", self.name,  ", Salary: ", self.salary)


if __name__ == '__main__':
   """This would create first object of Employee class"""
   emp1 = Employee("Zara", 2000)
   emp1.displayCount()
   """This would create second object of Employee class"""
   emp2 = Employee("Manni", 5000)
   emp2.displayCount()
   emp2.displayEmployee()

   # change attr
   emp1.age = 7
   print("after emp1.age, then has it:", hasattr(emp1, 'age'))
   print("after emp1.age, then emp1.age = ", getattr(emp1, 'age'))
   #del emp1.age # delete 'age' attribute

   print("emp1.__dict__ = ", emp1.__dict__)
   print("emp1.__doc__ = ",emp1.__doc__)
   print("Employee.__name__ = ",Employee.__name__)
   print("Employee.__module__ = ",Employee.__module__)
   print("Employee.__bases__ = ",Employee.__bases__)
